
** Import raw data
infile using "$rawpath\NLSY79_childresidencestatus_mother\NLSY79_childresidencestatus_mother.dct", clear

** To get labels from raw data
run "$rawpath\NLSY79_childresidencestatus_mother\NLSY79_childresidencestatus_mother-value-labels.do"

tolower

rename r0000100 mom_pid


qui descr c1res82_1982 - c11res16_2016 ,varlist
* Recode missing some variables
foreach var in `r(varlist)' {
	qui replace `var'=. if `var'<0 
}


save "$rawpath\000_NLSY79_childresidencestatus.dta", replace

